package com.xuan.friend.domain.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.xuan.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户提交表
 * @TableName tb_user_submit
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="tb_user_submit")
@Data
public class UserSubmit extends BaseEntity implements Serializable {
    /**
     * 用户提交id
     */
    @TableId
    private Long userSubmitId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 题目id
     */
    private Long questionId;

    /**
     * 竞赛id
     */
    private Long contestId;

    /**
     * 用户提交代码
     */
    private String userCode;

    /**
     * 0: 未通过  1: 通过
     */
    private Integer pass;

    /**
     * 执行结果信息
     */
    private String execMessage;

    /**
     *  用例执行结果,以 json 字符串形式存储(输入,输出,预期输出)
     */
    private String caseJudgeRes;

    /**
     * 用户题目得分
     */
    private Integer score;

    /**
     * 0:java  1:C++, ...
     */
    private Integer programType;

    /**
     * 是否删除 0:未删除  1:已删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}